package com.enjoy.xbase.xui.load;

import android.view.View;


public abstract class BaseLoad {
    protected LoadView loadView;

    public void setLoadView(LoadView loadView) {
        this.loadView = loadView;
    }

    protected abstract int getLoadLayoutId();

    protected abstract int getFailLayoutId();

    protected abstract int getEmptyLayoutId();

    protected abstract int getLoadingLayoutId();

    protected abstract void onLoadShow(View loadView, boolean first, Object param);

    protected abstract void onLoadHide(View loadView);

    protected abstract void onFailShow(View failView, boolean first, Object param);

    protected abstract void onFailHide(View failView);

    protected abstract void onEmptyShow(View emptyView, boolean first, Object param);

    protected abstract void onEmptyHide(View emptyView);

    protected abstract void onLoadingShow(View loadingView, boolean first, Object param);

    protected abstract void onLoadingHide(View loadingView);
}
